emacs.git
13 years agoMove generalized variable documentation from misc/cl.texi to lispref
Glenn Morris [Sat, 27 Oct 2012 22:42:07 +0000 (15:42 -0700)]
Move generalized variable documentation from misc/cl.texi to lispref

* doc/lispref/variables.texi (Generalized Variables): New section,
adapted from misc/cl.texi.

* doc/lispref/elisp.texi (Top): Add Generalized Variables to menu.

* doc/lispref/lists.texi (List Elements, List Variables):
Mention generalized variables.

* doc/misc/cl.texi (Control Structure): Update for setf now being in core.
(Setf Extensions): Rename from Basic Setf.  Move much of the
former content to lispref/variables.texi.
(Modify Macros): Move pop, push details to lispref/variables.texi.
(Customizing Setf): Copyedits for setf etc being in core.
(Modify Macros, Efficiency Concerns, Porting Common Lisp):
Further namespaces updates.

13 years ago* doc/lispref/lists.texi (List Elements): Typo fix.
Glenn Morris [Sat, 27 Oct 2012 22:07:43 +0000 (15:07 -0700)]
* doc/lispref/lists.texi (List Elements): Typo fix.

13 years agoFix compiler warnings in w32proc.c.
Eli Zaretskii [Sat, 27 Oct 2012 19:43:48 +0000 (21:43 +0200)]
Fix compiler warnings in w32proc.c.

 src/w32proc.c (sys_spawnve): Avoid compiler warning about format mismatch.
 (timer_loop): Remove unused variable.

13 years agoUse 'volatile' types for communications between timer thread and main thread.
Eli Zaretskii [Sat, 27 Oct 2012 19:32:30 +0000 (21:32 +0200)]
Use 'volatile' types for communications between timer thread and main thread.

13 years agoFix a typo in a comment.
Eli Zaretskii [Sat, 27 Oct 2012 19:20:02 +0000 (21:20 +0200)]
Fix a typo in a comment.

13 years agoFix w32 implementation of itimers: overflow and ITIMER_PROF.
Eli Zaretskii [Sat, 27 Oct 2012 11:21:26 +0000 (13:21 +0200)]
Fix w32 implementation of itimers: overflow and ITIMER_PROF.

 Avoid overflow in w32 implementation of interval timers.  When
 possible, for ITIMER_PROF count only times the main thread
 actually executes.

 src/w32proc.c <struct itimer_data>: 'expire' and 'reload' are now
 ULONGLONG types.  Likewise for all the other data which was
 previously clock_t.
 (GetThreadTimes_Proc): New typedef.
 (w32_get_timer_time): New function, returns a suitable time value
 for the timer.
 (timer_loop): Enter critical section when accessing ULONGLONG
 values of the itimer_data struct, as these accesses are no longer
 atomic.  Call 'w32_get_timer_time' instead of 'clock'.
 (init_timers): Initialize s_pfn_Get_Thread_Times.
 (start_timer_thread): Don't assign itimer->caller_thread here.
 (getitimer): Assign itimer->caller_thread here.
 (setitimer): Always call getitimer to get the value of ticks_now.

13 years agoFix typo in screen.texi.
Bastien Guerry [Sat, 27 Oct 2012 11:06:08 +0000 (13:06 +0200)]
Fix typo in screen.texi.

13 years agoFix help-echo text in profiler-report-make-entry-part.
Eli Zaretskii [Sat, 27 Oct 2012 09:54:04 +0000 (11:54 +0200)]
Fix help-echo text in profiler-report-make-entry-part.

 lisp/profiler.el (profiler-report-make-entry-part): Fix help-echo
 text to match the real keybindings.

13 years ago* lisp/wdired.el (wdired-keep-marker-rename): New defcustom.
Juri Linkov [Sat, 27 Oct 2012 09:17:14 +0000 (12:17 +0300)]
* lisp/wdired.el (wdired-keep-marker-rename): New defcustom.
(wdired-do-renames): Use it instead of `dired-keep-marker-rename'.

* lisp/dired.el (dired-keep-marker-rename): Add reference to
`wdired-keep-marker-rename' in the docstring.
Add default character value ?R to display initially in
Customization UI instead of ?@.

13 years agoIn display-time-world restore fit-window-to-buffer behavior.
martin rudalics [Sat, 27 Oct 2012 08:58:30 +0000 (10:58 +0200)]
In display-time-world restore fit-window-to-buffer behavior.

* window.el (display-buffer): In doc-string describe
window-height and window-width alist entries.

* time.el (display-time-world): Restore fit-window-to-buffer
behavior.

13 years agoMore Emacs 24.3 documentation updates.
Chong Yidong [Sat, 27 Oct 2012 05:03:52 +0000 (13:03 +0800)]
More Emacs 24.3 documentation updates.

* doc/emacs/building.texi (Compilation): Document compilation-always-kill.

* doc/emacs/files.texi (Misc File Ops): Symbolic links on Windows only work
on Vista and later.

* doc/emacs/frames.texi (Mouse Avoidance): Mention new variable
mouse-avoidance-banish-position.

* doc/emacs/mule.texi (Recognize Coding): Remove an unreferenced vindex.

* doc/emacs/package.texi (Package Menu): Document the "new" status.

* doc/emacs/programs.texi (Which Function): Which Function mode now works in
all major modes by default.

* doc/emacs/search.texi (Symbol Search): New node.

* doc/emacs/windows.texi (Window Choice): Don't refer to the obsolete
special-display feature.

* commands.texi (Event Input Misc): Remove last-input-char.
(Command Loop Info): Remove last-command-char.

* display.texi (Fringe Bitmaps): Add exclamation-mark bitmap.

* frames.texi (Initial Parameters): Don't mention the obsolete
special-display feature.

* hooks.texi (Standard Hooks): Remove obsolete hooks.

* markers.texi (Information from Markers): Remove obsolete
function buffer-has-markers-at.

* minibuf.texi (High-Level Completion): Don't mention removed
function iswitchb-read-buffer.

* text.texi (Yanking): Document yank-handled-properties.

* windows.texi (Choosing Window): Don't mention the obsolete
special display feature.
(Choosing Window Options): Remove obsolete special-display
variables, and the functions special-display-p and
special-display-popup-frame.

* subr.el (insert-buffer-substring-as-yank): Doc fix.

13 years ago* lisp/minibuffer.el (completion-category-overrides): New completion
Jambunathan K [Fri, 26 Oct 2012 20:44:38 +0000 (16:44 -0400)]
* lisp/minibuffer.el (completion-category-overrides): New completion
category `bookmark'.

13 years ago* Makefile.in (EMACS_NAME): New variable.
Glenn Morris [Fri, 26 Oct 2012 18:35:36 +0000 (14:35 -0400)]
* Makefile.in (EMACS_NAME): New variable.
(EMACS, install-etc, uninstall): Use $EMACS_NAME.

13 years ago* lisp/emacs-lisp/advice.el (ad-assemble-advised-definition):
Stefan Monnier [Fri, 26 Oct 2012 18:01:30 +0000 (14:01 -0400)]
* lisp/emacs-lisp/advice.el (ad-assemble-advised-definition):
Silence bogus compiler warnings for ad-do-it.

13 years ago* lisp/bookmark.el (bookmark-completing-read): Set the completion category
Stefan Monnier [Fri, 26 Oct 2012 17:20:54 +0000 (13:20 -0400)]
* lisp/bookmark.el (bookmark-completing-read): Set the completion category
to `bookmark'.

13 years ago* lisp/face-remap.el: Use lexical-binding.
Bastien [Fri, 26 Oct 2012 17:07:35 +0000 (13:07 -0400)]
* lisp/face-remap.el: Use lexical-binding.
(text-scale-adjust): Improve docstring.  Use itself for the temporary
overlay-map bindings, so as to repeat the "Use..." message each time.

13 years ago* lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
Stefan Monnier [Fri, 26 Oct 2012 15:59:40 +0000 (11:59 -0400)]
* lisp/emacs-lisp/macroexp.el (macroexp--expand-all):
Obey byte-compile-warning-enabled-p.

13 years ago* lisp/vc/diff-mode.el (diff-end-of-hunk): Also skip potential "no LF at eol".
Stefan Monnier [Fri, 26 Oct 2012 15:51:42 +0000 (11:51 -0400)]
* lisp/vc/diff-mode.el (diff-end-of-hunk): Also skip potential "no LF at eol".
(diff-refine-hunk): Similarly, handle the "no LF at eol".

13 years agoFix overwritten typos and Org version number.
Bastien Guerry [Fri, 26 Oct 2012 15:27:29 +0000 (17:27 +0200)]
Fix overwritten typos and Org version number.

13 years agoMerge upstream Org (from commit acbbe2)
Bastien Guerry [Fri, 26 Oct 2012 14:42:05 +0000 (16:42 +0200)]
Merge upstream Org (from commit acbbe2)

13 years agoAvoid hourglass mouse pointer when a tooltip for menu item is shown.
Eli Zaretskii [Fri, 26 Oct 2012 09:46:46 +0000 (11:46 +0200)]
Avoid hourglass mouse pointer when a tooltip for menu item is shown.

 src/w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Don't enable tracking of
 mouse movement events if the menu bar is active.  This avoids
 producing a busy "hour-glass" cursor by Windows if the mouse
 pointer is positioned over a tooltip shown for some menu item.

13 years agoFix bug#12731 in mouse-drag-line.
martin rudalics [Fri, 26 Oct 2012 09:11:24 +0000 (11:11 +0200)]
Fix bug#12731 in mouse-drag-line.

* mouse.el (mouse-drag-line): Move last form into preceding when
clause (Bug#12731).

* help.el (resize-temp-buffer-window): Fix doc-string.

13 years ago* Makefile.in (uninstall): No INSTALLABLES live in archlibdir.
Glenn Morris [Fri, 26 Oct 2012 07:40:51 +0000 (00:40 -0700)]
* Makefile.in (uninstall): No INSTALLABLES live in archlibdir.

13 years agoProgram name transformations should not be applied to $EXEEXT.
Glenn Morris [Fri, 26 Oct 2012 07:39:47 +0000 (00:39 -0700)]
Program name transformations should not be applied to $EXEEXT.

* Makefile.in (EMACS, EMACSFULL):
* lib-src/Makefile.in (install, uninstall):
Transformations should not be applied to $EXEEXT.

13 years agoMisc fixes for make uninstall
Glenn Morris [Fri, 26 Oct 2012 07:32:40 +0000 (00:32 -0700)]
Misc fixes for make uninstall

* Makefile.in (uninstall): Don't abort if some directories are missing.
Apply transformation rules to manual pages, desktop and icon files.
No more emacs22 icons to uninstall.

13 years agoMerge changes from CEDET upstream.
David Engster [Thu, 25 Oct 2012 20:16:14 +0000 (22:16 +0200)]
Merge changes from CEDET upstream.

13 years agoMerge CEDET upstream.
David Engster [Thu, 25 Oct 2012 20:13:16 +0000 (22:13 +0200)]
Merge CEDET upstream.

* emacs-lisp/eieio.el (eieio-update-lisp-imenu-expression):
Removed.  This feature is already integrated in imenu.

* emacs-lisp/eieio-opt.el: Remove require for `button' since it is
always loaded.  Require `speedbar' unconditionally.

* semantic/analyze.el (semantic-analyze-dereference-alias): New
function to dereference aliases.
(semantic-analyze-current-context-default): Use it.

* semantic/grammar.el (semantic-grammar-create-package):
* srecode/compile.el (srecode-compile-templates): Throw a proper
error if semantic-mode is not enabled (bug#9968).

Compiler warning fixes:

* semantic.el (semantic-elapsed-time): Make it a defsubst.

* srecode/dictionary.el (srecode-adebug-dictionary): Remove
require for `semantic'.

* srecode/map.el:
* srecode/insert.el: Declare functions from `data-debug'.

* semantic/grammar.el: Require `help-fns'.  Declare functions from
`eldoc', which is required in function body.

* srecode/java.el:
* semantic/texi.el:
* semantic/grammar-wy.el:
* semantic/db-file.el:
* semantic/db-el.el:
* semantic/chart.el: Fix requires.

* ede/locate.el: Remove useless requires. Declare functions
instead and require in functions when needed.

13 years agoMerge from trunk.
David Engster [Thu, 25 Oct 2012 19:11:29 +0000 (21:11 +0200)]
Merge from trunk.

13 years ago* lisp/dired.el (dired-get-marked-files): Allow ! on . and ...
Stefan Monnier [Thu, 25 Oct 2012 13:00:52 +0000 (09:00 -0400)]
* lisp/dired.el (dired-get-marked-files): Allow ! on . and ...

13 years ago* lisp/minibuffer.el (minibuffer-force-complete): Fix thinko.
Stefan Monnier [Thu, 25 Oct 2012 12:56:13 +0000 (08:56 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete): Fix thinko.

13 years ago* lisp/net/ldap.el (ldap-search-internal): The official ldif format starts
Stefan Monnier [Thu, 25 Oct 2012 12:41:23 +0000 (08:41 -0400)]
* lisp/net/ldap.el (ldap-search-internal): The official ldif format starts
with a "version: 1" header.

13 years ago* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.
Stefan Monnier [Thu, 25 Oct 2012 12:38:09 +0000 (08:38 -0400)]
* lisp/emacs-lisp/package.el (package-installed-p): Warn if not ready.

13 years ago* tramp.texi (Frequently Asked Questions): Mention
Michael Albinus [Thu, 25 Oct 2012 12:08:44 +0000 (14:08 +0200)]
* tramp.texi (Frequently Asked Questions): Mention
`tramp-completion-reread-directory-timeout' for performance
improvement.

13 years agoAuto-commit of loaddefs files.
Glenn Morris [Thu, 25 Oct 2012 10:17:47 +0000 (06:17 -0400)]
Auto-commit of loaddefs files.

13 years agoDon't assume process IDs fit in int.
Paul Eggert [Thu, 25 Oct 2012 04:35:39 +0000 (21:35 -0700)]
Don't assume process IDs fit in int.

* emacs.c (shut_down_emacs) [!DOS_NT]:
* sysdep.c (sys_suspend) [SIGTSTP && !MSDOS]:
* term.c (dissociate_if_controlling_tty) [!DOS_NT]:
Use pid_t, not int, to store process IDs, as 'int'
is not wide enough on a few platforms (e.g., AIX and IRIX).

13 years ago* doc/misc/cl.texi (Declarations): Fix typos.
Glenn Morris [Thu, 25 Oct 2012 01:49:54 +0000 (21:49 -0400)]
* doc/misc/cl.texi (Declarations): Fix typos.

13 years agoNEWS copyedits
Glenn Morris [Thu, 25 Oct 2012 01:24:21 +0000 (21:24 -0400)]
NEWS copyedits

13 years agoMore cl doc updates
Glenn Morris [Thu, 25 Oct 2012 00:58:40 +0000 (20:58 -0400)]
More cl doc updates

* doc/misc/cl.texi: Don't mess with the TeX section number counter.
Use Texinfo recommended convention for quotes+punctuation.
(Overview, Sequence Functions): Rephrase for better line-breaking.
(Time of Evaluation, Type Predicates, Modify Macros, Function Bindings)
(Macro Bindings, Conditionals, Iteration, Loop Basics)
(Random Numbers, Mapping over Sequences, Structures)
(Porting Common Lisp): Further updates for cl-lib namespace.
(Modify Macros, Declarations, Macro Bindings, Structures):
Break long lines in examples.
(Dynamic Bindings): Update for changed progv behavior.
(Loop Examples, Efficiency Concerns): Markup fixes.
(Structures): Remove TeX margin change.

* lisp/emacs-lisp/cl-macs.el (cl-progv): Doc fix.

* etc/NEWS: Related markup.

13 years agoRemove some old information from cl.texi that is no longer relevant
Glenn Morris [Wed, 24 Oct 2012 21:53:47 +0000 (17:53 -0400)]
Remove some old information from cl.texi that is no longer relevant

* doc/misc/cl.texi (Overview, Multiple Values, Creating Symbols)
(Numerical Functions): Say less/nothing about the original cl.el.
(Old CL Compatibility): Remove.
(Assertions): Remove ignore-errors (standard Elisp for some time).

13 years ago* lisp/minibuffer.el (minibuffer-force-complete): Use one more marker
Stefan Monnier [Wed, 24 Oct 2012 19:40:23 +0000 (15:40 -0400)]
* lisp/minibuffer.el (minibuffer-force-complete): Use one more marker
for the temporary-overlay-map command.

13 years ago* time.el (display-time-world-display): Wrap delete-char inside inhibit-read-only.
Chong Yidong [Wed, 24 Oct 2012 18:26:22 +0000 (02:26 +0800)]
* time.el (display-time-world-display): Wrap delete-char inside inhibit-read-only.

13 years agoRevert last change to org-lparse.el
Chong Yidong [Wed, 24 Oct 2012 18:16:41 +0000 (02:16 +0800)]
Revert last change to org-lparse.el

13 years ago* Makefile.in (install-etc): Don't apply program transform to file suffixes.
Glenn Morris [Wed, 24 Oct 2012 17:25:24 +0000 (13:25 -0400)]
* Makefile.in (install-etc): Don't apply program transform to file suffixes.

13 years ago* Makefile.in (install-man): Don't apply transform to suffix.
Glenn Morris [Wed, 24 Oct 2012 16:41:59 +0000 (09:41 -0700)]
* Makefile.in (install-man): Don't apply transform to suffix.

13 years agoFix error in previous merge from Org.
Jambunathan K [Wed, 24 Oct 2012 15:04:12 +0000 (23:04 +0800)]
Fix error in previous merge from Org.

* lisp/org/org-lparse.el: Move some hooks from org-lparse to
org-do-lparse.

13 years ago* time.el (display-time-world-mode): Derive from special-mode.
Chong Yidong [Wed, 24 Oct 2012 14:50:30 +0000 (22:50 +0800)]
* time.el (display-time-world-mode): Derive from special-mode.
(display-time-world): Use display-buffer.
(display-time-world-mode-map): Variable deleted.

13 years agoDocument some Emacs 24.3 changes.
Chong Yidong [Wed, 24 Oct 2012 14:38:49 +0000 (22:38 +0800)]
Document some Emacs 24.3 changes.

* doc/emacs/dired.texi (Dired Deletion, Marks vs Flags): Document Emacs 24.3
changes to the mark and unmark commands.
(Comparison in Dired): Document chages to dired-diff.  Remove M-=,
which is no longer bound to dired-backup-diff.

* doc/emacs/mule.texi (Text Coding): set-buffer-file-coding-system can now
be invoked from the mode line.

* lisp/dired.el (dired-mark, dired-unmark, dired-flag-file-deletion):
Doc fix.

13 years agont/config.nt: Sync with autogen/config.in.
Juanma Barranquero [Wed, 24 Oct 2012 13:46:38 +0000 (15:46 +0200)]
nt/config.nt: Sync with autogen/config.in.

13 years agoAuto-commit of generated files.
Glenn Morris [Wed, 24 Oct 2012 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

13 years agoFurther namespace updates for cl.texi
Glenn Morris [Wed, 24 Oct 2012 07:41:11 +0000 (00:41 -0700)]
Further namespace updates for cl.texi

* doc/misc/cl.texi (Basic Setf, Macros, Declarations, Symbols, Numbers)
(Sequences, Lists, Structures, Assertions, Efficiency Concerns)
(Efficiency Concerns, Efficiency Concerns)
(Common Lisp Compatibility, Old CL Compatibility):
Further updates for cl-lib namespace.

13 years agoUpdate manual for new time stamp format.
Paul Eggert [Wed, 24 Oct 2012 05:12:23 +0000 (05:12 +0000)]
Update manual for new time stamp format.

These instances were missed the first time around.
Problem reported by Glenn Morris in <http://bugs.gnu.org/12706#25>.
* doc/lispintro/emacs-lisp-intro.texi (Files List):
* doc/lispref/buffers.texi (Modification Time):
* doc/lispref/files.texi (Testing Accessibility, File Attributes):
* doc/lispref/intro.texi (Version Info):
* doc/lispref/os.texi (Time of Day):
* doc/misc/emacs-mime.texi (time-date):
Update for new time stamp format (HIGH LOW MICROSEC PICOSEC).
* doc/misc/emacs-mime.texi (time-date):
Also, fix bogus time stamp and modernize a bit.

13 years agoImprove documentation of easy-menu-define.
Chong Yidong [Wed, 24 Oct 2012 03:48:50 +0000 (11:48 +0800)]
Improve documentation of easy-menu-define.

* lisp/emacs-lisp/easymenu.el (easy-menu-define): Doc fix.

* doc/lispref/keymaps.texi (Toolkit Differences): Node deleted.
(Easy Menu): New node.

13 years ago* minibuffer.el (completion--flush-all-sorted-completions): Fix typo.
Stefan Monnier [Wed, 24 Oct 2012 03:22:21 +0000 (23:22 -0400)]
* minibuffer.el (completion--flush-all-sorted-completions): Fix typo.

13 years ago* lisp/minibuffer.el (completion--all-sorted-completions-location): New var.
Stefan Monnier [Wed, 24 Oct 2012 03:18:32 +0000 (23:18 -0400)]
* lisp/minibuffer.el (completion--all-sorted-completions-location): New var.
(completion--cache-all-sorted-completions)
(completion--flush-all-sorted-completions): Use it.
(completion-in-region, completion-in-region--postch)
(completion-at-point, completion-help-at-point): Use markers in
completion-in-region--data.

13 years agoFix last tiny change about text.texi.
Bastien Guerry [Tue, 23 Oct 2012 21:26:00 +0000 (23:26 +0200)]
Fix last tiny change about text.texi.

Thanks to Eli for his guidance.

13 years ago* configure.ac (_FORTIFY_SOURCE): Do not multiply define.
Paul Eggert [Tue, 23 Oct 2012 19:39:36 +0000 (12:39 -0700)]
* configure.ac (_FORTIFY_SOURCE): Do not multiply define.

This ports to Gentoo.  Problem originally reported against coreutils,
but Emacs has it too.

13 years ago* lisp/progmodes/compile.el (compilation-start): Try to handle common
Stefan Monnier [Tue, 23 Oct 2012 19:07:44 +0000 (15:07 -0400)]
* lisp/progmodes/compile.el (compilation-start): Try to handle common
quoting of `cd' argument.

13 years ago* lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.
Stefan Monnier [Tue, 23 Oct 2012 18:40:23 +0000 (14:40 -0400)]
* lisp/vc/diff-mode.el (diff-hunk): `save-excursion' while refining.

13 years ago* gud.el (gud-menu-map): Check gdb-active-process is bound. (Bug#12358)
Glenn Morris [Tue, 23 Oct 2012 17:49:24 +0000 (13:49 -0400)]
* gud.el (gud-menu-map): Check gdb-active-process is bound.  (Bug#12358)

13 years agoRevert 2012-10-21 Makefile.in change (bug#12713)
Glenn Morris [Tue, 23 Oct 2012 17:33:22 +0000 (13:33 -0400)]
Revert 2012-10-21 Makefile.in change (bug#12713)

* Makefile.in (emacs_transform): Remove.
(install-man): Revert 2012-10-21 change.

13 years agoUpdate lib-src/makefile.w32-in to follow revision 110608.
Eli Zaretskii [Tue, 23 Oct 2012 17:09:55 +0000 (19:09 +0200)]
Update lib-src/makefile.w32-in to follow revision 110608.

 lib-src/makefile.w32-in (lisp2): Add cp51932.el and eucjp-ms.el, to
 follow src/lisp.mk.

13 years ago* checkdoc.el (checkdoc-comment-style-hooks): Typo.
Stefan Monnier [Tue, 23 Oct 2012 17:09:22 +0000 (13:09 -0400)]
* checkdoc.el (checkdoc-comment-style-hooks): Typo.

13 years ago* lisp/repeat.el (repeat): Set real-this-command.
Stefan Monnier [Tue, 23 Oct 2012 16:57:31 +0000 (12:57 -0400)]
* lisp/repeat.el (repeat): Set real-this-command.

13 years agoRemove NEWS markup so that file-attributes etc get rechecked
Glenn Morris [Tue, 23 Oct 2012 16:26:52 +0000 (09:26 -0700)]
Remove NEWS markup so that file-attributes etc get rechecked

13 years ago* text.texi (Org Authoring): Change @ref to @pxref.
Bastien Guerry [Tue, 23 Oct 2012 16:12:59 +0000 (18:12 +0200)]
* text.texi (Org Authoring): Change @ref to @pxref.

13 years agoMake face-font-rescale-alist work correctly for non-ASCII fonts.
Kenichi Handa [Tue, 23 Oct 2012 15:48:17 +0000 (00:48 +0900)]
Make face-font-rescale-alist work correctly for non-ASCII fonts.

13 years agomerge trunk
Kenichi Handa [Tue, 23 Oct 2012 15:47:51 +0000 (00:47 +0900)]
merge trunk

13 years agoMake face-font-rescale-alist work correctly for non-ASCII fonts.
Kenichi Handa [Tue, 23 Oct 2012 15:42:29 +0000 (00:42 +0900)]
Make face-font-rescale-alist work correctly for non-ASCII fonts.

13 years agoCleanup uses of "-hooks".
Stefan Monnier [Tue, 23 Oct 2012 15:06:07 +0000 (11:06 -0400)]
Cleanup uses of "-hooks".
* doc/emacs/custom.texi (Hooks):
* doc/lispref/hooks.texi (Standard Hooks): Clarify that -hooks is deprecated.

* lisp/gnus/nndiary.el (nndiary-request-create-group-functions)
(nndiary-request-update-info-functions)
(nndiary-request-accept-article-functions):
* lisp/gnus/gnus-start.el (gnus-subscribe-newsgroup-functions):
* lisp/cedet/semantic/db-file.el (semanticdb-save-database-functions):
* lisp/cedet/semantic/lex.el (semantic-lex-reset-functions):
* lisp/cedet/semantic/edit.el (semantic-change-functions)
(semantic-edits-new-change-functions)
(semantic-edits-delete-change-functions)
(semantic-edits-reparse-change-functions):
* lisp/htmlfontify.el (hfy-post-html-hook):
* lisp/filesets.el (filesets-cache-fill-content-hook):
* lisp/arc-mode.el (archive-extract-hook):
* lisp/progmodes/cc-mode.el (c-prepare-bug-report-hook):
* lisp/net/rcirc.el (rcirc-sentinel-functions)
(rcirc-receive-message-functions, rcirc-activity-functions)
(rcirc-print-functions):
* lisp/net/dbus.el (dbus-event-error-functions):
* lisp/emacs-lisp/eieio.el (eieio-pre-method-execution-functions):
* lisp/emacs-lisp/checkdoc.el (checkdoc-style-functions)
(checkdoc-comment-style-functions): Don't use "-hooks" suffix.

* lisp/term/sun.el (sun-raw-prefix-hooks):
* lisp/mail/sendmail.el (mail-yank-hooks):
* lisp/mh-e/mh-letter.el (mh-yank-hooks): Use make-obsolete-variable.

13 years ago* net/tramp-smb.el (tramp-smb-maybe-open-connection): Set
Michael Albinus [Tue, 23 Oct 2012 14:26:30 +0000 (16:26 +0200)]
* net/tramp-smb.el (tramp-smb-maybe-open-connection): Set
`tramp-chunksize' to 1.  This improves the performance.
(tramp-smb-wait-for-output): Add timeout to
`tramp-accept-process-output' calls.

13 years agoFix outdated timestamp documentation in Elisp manual.
Paul Eggert [Tue, 23 Oct 2012 07:57:42 +0000 (00:57 -0700)]
Fix outdated timestamp documentation in Elisp manual.

* doc/lispref/files.texi (File Attributes):
* doc/lispref/text.texi (Undo):
Time stamp resolution is now 1 picosecond, not 1 second.
* etc/NEWS: Document increased precision in undo list.

13 years agoChangeLog fix
Glenn Morris [Tue, 23 Oct 2012 07:52:18 +0000 (00:52 -0700)]
ChangeLog fix

13 years agoStart updating cl.texi for cl-lib changes
Glenn Morris [Tue, 23 Oct 2012 07:43:39 +0000 (00:43 -0700)]
Start updating cl.texi for cl-lib changes

* doc/misc/cl.texi: Include emacsver.texi.
Use Emacs version number rather than unchanging cl.el version number.
End all menu descriptions with a period.
Do not use @dfn{CL} for every instance of "CL".
(Overview): Remove no-runtime caveat, and note about foo* names.
(Usage): Use cl-lib rather than cl.
(Organization, Naming Conventions): Update for cl-lib.el.
(Installation): Remove long-irrelevant node.
(Program Structure, Predicates, Control Structure):
Start updating for cl-lib namespace.

* doc/misc/Makefile.in ($(buildinfodir)/cl$(INFO_EXT), cl.dvi, cl.pdf):
Depend on emacsver.texi.

13 years agoMake unused variable font-list-limit obsolete, and move it out of C.
Chong Yidong [Tue, 23 Oct 2012 02:39:13 +0000 (10:39 +0800)]
Make unused variable font-list-limit obsolete, and move it out of C.

* display.texi (Font Lookup): Remove font-list-limit.

* lisp/startup.el (command-line):
* lisp/cus-start.el: Don't refer to font-list-limit.

* lisp/faces.el (font-list-limit): Define as an obsolete variable.

* xfaces.c (Vfont_list_limit): Move unused variable to faces.el.

13 years ago* doc/lispref/keymaps.texi (Key Sequences): Avoid referring to Edit Macro mode.
Chong Yidong [Tue, 23 Oct 2012 02:23:39 +0000 (10:23 +0800)]
* doc/lispref/keymaps.texi (Key Sequences): Avoid referring to Edit Macro mode.

* doc/emacs/kmacro.texi (Edit Keyboard Macro): Fix typo.

13 years ago* lisp/newcomment.el (comment-normalize-vars): Doc fix.
Chong Yidong [Tue, 23 Oct 2012 02:17:36 +0000 (10:17 +0800)]
* lisp/newcomment.el (comment-normalize-vars): Doc fix.

13 years ago* lisp/subr.el (internal-temp-output-buffer-show): Rename from
Stefan Monnier [Tue, 23 Oct 2012 01:18:47 +0000 (21:18 -0400)]
* lisp/subr.el (internal-temp-output-buffer-show): Rename from
temp-output-buffer-show, since previously compiled files expect this name.

13 years agoimage-type-from-file-name fix for bug#9045
Glenn Morris [Tue, 23 Oct 2012 00:46:11 +0000 (20:46 -0400)]
image-type-from-file-name fix for bug#9045

* lisp/image.el (image-type-from-file-name): If multiple types match,
return the first one that is supported.

13 years ago* doc/lispref/os.texi (Recording Input): Tiny fix.
Glenn Morris [Mon, 22 Oct 2012 21:57:14 +0000 (17:57 -0400)]
* doc/lispref/os.texi (Recording Input): Tiny fix.

13 years ago* lisp/image.el (imagemagick-enabled-types): Doc fix.
Glenn Morris [Mon, 22 Oct 2012 21:53:03 +0000 (17:53 -0400)]
* lisp/image.el (imagemagick-enabled-types): Doc fix.

13 years ago* lisp/progmodes/which-func.el (which-func-current): The hash-table may have
Takafumi Arakaki [Mon, 22 Oct 2012 13:29:28 +0000 (09:29 -0400)]
* lisp/progmodes/which-func.el (which-func-current): The hash-table may have
an explicit nil.

13 years agoRework the last delsel/electric fix.
Stefan Monnier [Mon, 22 Oct 2012 12:43:54 +0000 (08:43 -0400)]
Rework the last delsel/electric fix.
* lisp/delsel.el (delete-selection-helper): Use a function instead of a hook.
(delete-selection-pre-hook): Use use-region-p.
(delete-selection-self-insert-function): Remove.
(self-insert-command): Obey self-insert-uses-region-functions.
(self-insert-iso): Revert to previous setting, since we don't actually
know what that command does.
(delete-selection-self-insert-hooks): Remove.
* lisp/electric.el (electric-pair-delete-selection-self-insert-function):
Rename to electric-pair-will-use-region, return a boolean.
(electric-pair-mode): Adjust accordingly.  Don't require delsel.

13 years ago* lisp/delsel.el (delete-selection-helper): New function, extracted from
Simon Law [Mon, 22 Oct 2012 03:15:44 +0000 (23:15 -0400)]
* lisp/delsel.el (delete-selection-helper): New function, extracted from
delete-selection-pre-hook.
(delete-selection-pre-hook): Use it.
(delete-selection-self-insert-function): New function.
(delete-selection-self-insert-hooks): New hook.
(self-insert-command, self-insert-iso): Use it.
* lisp/electric.el (electric-pair-syntax): New function, extracted from
electric-pair-post-self-insert-function.
(electric-pair-post-self-insert-function): Use it.
(electric-pair-delete-selection-self-insert-function): New function.
(electric-pair-mode): Require delsel and setup
delete-selection-self-insert-hooks.

13 years agoRefer to cl-lib rather than cl in lispref
Glenn Morris [Mon, 22 Oct 2012 02:22:27 +0000 (19:22 -0700)]
Refer to cl-lib rather than cl in lispref

* intro.texi (Lisp History):
* lists.texi (Sets And Lists): Refer to cl-lib rather than cl.

13 years ago* doc/lispref/tips.texi (Coding Conventions): Recommend cl-lib over cl.
Glenn Morris [Mon, 22 Oct 2012 02:18:58 +0000 (19:18 -0700)]
* doc/lispref/tips.texi (Coding Conventions): Recommend cl-lib over cl.

13 years ago* nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement
Jan D. [Sun, 21 Oct 2012 18:48:11 +0000 (20:48 +0200)]
* nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement
for screen font.
(nsfont_draw): Turn off LCD-smoothing.

13 years ago* xterm.c (x_focus_changed): Check if daemonp when sending focus in
Jan D. [Sun, 21 Oct 2012 14:53:28 +0000 (16:53 +0200)]
* xterm.c (x_focus_changed): Check if daemonp when sending focus in
event.

13 years agoSpelling fixes.
Paul Eggert [Sun, 21 Oct 2012 07:23:34 +0000 (00:23 -0700)]
Spelling fixes.

13 years agoPut back old Emacs 22 icons, just don't install them
Glenn Morris [Sun, 21 Oct 2012 01:35:46 +0000 (18:35 -0700)]
Put back old Emacs 22 icons, just don't install them
Some people prefer them to the newer icon

* Makefile.in (install-etc): Don't install emacs22 icons.

* etc/images/icons/hicolor/32x32/apps/emacs22.png:
* etc/images/icons/hicolor/16x16/apps/emacs22.png:
* etc/images/icons/hicolor/48x48/apps/emacs22.png:
* etc/images/icons/hicolor/24x24/apps/emacs22.png: Restore old icons.

* etc/images/icons/README: Restore info about emacs22 icons

13 years agoIn Makefile.in, use a make variable rather than a shell variable.
Glenn Morris [Sun, 21 Oct 2012 01:27:09 +0000 (18:27 -0700)]
In Makefile.in, use a make variable rather than a shell variable.

* Makefile.in (emacs_transform): New variable.
(install-etc): Prefer a make variable to a shell variable.

13 years agoRecognize that cp51932.el and eucjp-ms.el are loaded during dumping
Glenn Morris [Sun, 21 Oct 2012 01:19:46 +0000 (18:19 -0700)]
Recognize that cp51932.el and eucjp-ms.el are loaded during dumping

* src/lisp.mk (lisp): Add cp51932.el and eucjp-ms.el.

* lib-src/make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.

13 years agoPort to OpenBSD 5.1.
Paul Eggert [Sat, 20 Oct 2012 21:30:51 +0000 (14:30 -0700)]
Port to OpenBSD 5.1.

* frame.c (Fmouse_position, Fmouse_pixel_position):
* xdisp.c (produce_stretch_glyph):
Declare local vars only when they're needed.
This is clearer and avoids a warning on OpenBSD about unused vars.
* frame.h (FRAME_WINDOW_P): Always evaluate its argument.
This is safer, and avoids OpenBSD warnings about unused vars.
* keyboard.c (record_menu_key): Remove unnecessary decl.
(poll_timer): Define only if POLL_FOR_INPUT is defined.
* unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined,
as our definition clashes with OpenBSD's.
* xfaces.c (load_face_colors, check_lface_attrs)
(get_lface_attributes_no_remap, get_lface_attributes)
(lface_fully_specified_p, x_supports_face_attributes_p)
(tty_supports_face_attributes_p, face_fontset, realize_face)
(realize_x_face, realize_tty_face):
Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not
merely Lisp_Object *.  This is more informative and avoids
a warning on OpenBSD about accessing beyond an object's size.

13 years agoFix last changes in make-docfile.c.
Eli Zaretskii [Sat, 20 Oct 2012 15:26:10 +0000 (17:26 +0200)]
Fix last changes in make-docfile.c.

 lib-src/make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
 (scan_lisp_file): Only pass a .el file if its basename matches a
 known file in its entirety.  Use IS_SLASH and DEF_ELISP_FILE.

13 years agoFix a typo in lib-src/ChangeLog.
Eli Zaretskii [Sat, 20 Oct 2012 14:56:09 +0000 (16:56 +0200)]
Fix a typo in lib-src/ChangeLog.

13 years ago* make-docfile.c (scan_lisp_file): Add bounds checking.
Andreas Schwab [Sat, 20 Oct 2012 13:28:42 +0000 (15:28 +0200)]
* make-docfile.c (scan_lisp_file): Add bounds checking.

13 years agoAdd comments with instructions for creating new Lisp data types.
Eli Zaretskii [Sat, 20 Oct 2012 13:20:44 +0000 (15:20 +0200)]
Add comments with instructions for creating new Lisp data types.

13 years ago* lread.c (Fload): Doc fix.
Chong Yidong [Sat, 20 Oct 2012 12:50:49 +0000 (20:50 +0800)]
* lread.c (Fload): Doc fix.

13 years agoFix *vc-diff* buffer's behavior for empty diffs.
Chong Yidong [Sat, 20 Oct 2012 12:04:45 +0000 (20:04 +0800)]
Fix *vc-diff* buffer's behavior for empty diffs.

* vc/vc.el (vc-diff-internal): Set up Diff mode even if there are
no changes to show.

13 years agoFix for Eshell's for loop.
Chong Yidong [Sat, 20 Oct 2012 11:54:24 +0000 (19:54 +0800)]
Fix for Eshell's for loop.

* eshell/esh-cmd.el (eshell-rewrite-for-command): Copy the body
list explicitly.

13 years agoFix last ChangeLog entry.
Chong Yidong [Sat, 20 Oct 2012 11:35:05 +0000 (19:35 +0800)]
Fix last ChangeLog entry.